package com.example.login;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Intent intent = getIntent();
        String data1 =intent.getStringExtra("userName");
        String data =intent.getStringExtra("password");
        TextView txtView = (TextView) findViewById(R.id.sa);
        txtView.setText("用户名"+data1+"\n密码"+data);

    }
}